package com.hfxt.service;

import com.hfxt.entity.Contact;
import com.hfxt.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("contact")
public interface ContactService {

    @RequestMapping("/contact/list")
    public Result list(@RequestParam("cname") String cname, @RequestParam("pageIndex") Integer pageIndex, @RequestParam("pageSize") Integer pageSize);

    @RequestMapping("/contact/save")
    public Result save(@RequestBody Contact contact);

    @RequestMapping("/contact/del")
    public Result del(@RequestParam("id") Long id);

}
